Smart image sensor having integrated memory and processor

ABSTRACT

An apparatus is described. The apparatus includes a smart image sensor having a memory and a processor that are locally integrated with an image sensor. The memory is to store first program code to be executed by the processor. The memory is coupled to the image sensor and the processor. The memory is to store second program code to be executed by the processor. The first program code is to cause the smart image sensor to perform an analysis on one or more images captured by the image sensor. The analysis identifies a region of interest within the one or more images with machine learning from previously captured images. The second program code is to cause the smart image sensor to change an image sensing and/or optical parameter in response to the analysis of the one or more images performed by the execution of the first program code. Alternatively or in combination, the memory is to store third program code to be executed by the processor and fourth program code to be executed by the processor. The third program code is to store multiple images captured by the image sensor in the memory. The fourth program code is to merge the multiple images in the memory.

RELATED CASES

This application claims the benefit of U.S. Provisional Application No.62/207,232, titled “Smart Image Sensor Having Integrated Memory andProcessor”, filed Aug. 19, 2015, which is incorporated by reference inits entirety.

FIELD OF INVENTION

The field of invention pertains generally to imaging, and, morespecifically, to a camera having an integrated memory and processor

BACKGROUND

FIG. 1 depicts traditional data flows 1, 2, 3 for camera relatedfunctions within a computing system. In many current computing systems,the camera 101 has little or no processing intelligence. As aconsequence, complex functions of the camera 101 itself, or,applications that make use of the camera's images are typically executedon the computing system's general purpose processing core(s) 105 (suchas one or more applications processors).

As observed in FIG. 1, the execution of these functions/applications onthe processing core(s) 105 results in cumbersome movements of largeamounts of data within the computing system as well as feedback pathsfrom the core(s) 105 back to the camera 101 having long latencies. Theoverall inefficiency also corresponds to increased traffic congestionand power consumption by the system.

For example, consider an auto-focus routine that is performed on core(s)105. Here, entire frames of image data are directed 1 from the camera101 through an I/O control hub 102 and memory controller 103 beforebeing written into system memory 104. In order for the core(s) 105 toexecute the auto-focus routine the image data is called up 2 to thecore(s) for processing from system memory 104. Here, large amounts ofdata are moved along data paths 1 and 2 resulting in long latencies,increased power consumption and traffic congestion within the system.

Additionally, when the auto-focus routine completes its analysis and thecore(s) 105 attempt to communicate a next auto-focus command to thecamera 101, the command may progress 3 through the memory controller 103and/or I/O control hub 102 before finally reaching the camera 101. Alongthe way the command may be queued at different locations within thesystem. Thus, additional latency is observed from the perspective of thecamera 101 from the time the image data is first sent 1 to the time itfinally receives a feedback command 3 based on the image data.

SUMMARY

An apparatus is described. The apparatus includes a smart image sensorhaving a memory and a processor that are locally integrated with animage sensor. The memory is coupled to the image sensor and theprocessor. The memory is to store first program code to be executed bythe processor. The memory is to store second program code to be executedby the processor. The first program code is to cause the smart imagesensor to perform an analysis on one or more images captured by theimage sensor. The analysis is to identify a region of interest withinthe one or more images with machine learning from previously capturedimages. The second program code is to cause the smart image sensor tochange an image sensing and/or optical parameter in response to theanalysis of the one or more images performed by the execution of thefirst program code. Alternatively or in combination, the memory is tostore third program code to be executed by the processor and fourthprogram code to be executed by the processor. The third program code isto store multiple images captured by the image sensor in the memory. Thefourth program code is to merge the multiple images in the memory.

LIST OF FIGURES

The following description and accompanying drawings are used toillustrate embodiments of the invention. In the drawings:

FIG. 1 shows a computing system;

FIG. 2 shows a camera having an integrated memory and processor;

FIG. 3 shows application software that may run on the camera of FIG. 2;

FIGS. 4a and 4b pertain to an auto-focus approach that may be performedby the camera of FIG. 2;

FIGS. 5a through 5c also pertain to an auto-focus approach that may beperformed by the camera of FIG. 2;

FIGS. 6a and 6b pertain to a technique for performing EIS for a stillimage with the camera of FIG. 2;

FIG. 7 pertain to a technique for producing high dynamic range videoimages with the camera of FIG. 2.

DETAILED DESCRIPTION

FIG. 2 shows an improved approach that migrates camera-specificprocessing intelligence into, e.g., the camera package itself 201. Asobserved in FIG. 2, apart from the typical optics/servos 202 and imagesensor 203 being located within the camera package 201 there also existsmemory 204 and a processor 205. As observed in FIG. 2, the variousdevices 202 through 205 may be stacked within the camera package 201. Bycombining all of these components 202 through 205 in a single camerapackage 201 many camera specific functions may be executed within thecamera itself thereby avoiding the length and inefficient flow up tosystem memory and beyond.

In other embodiments the processor 205 and/or memory 204 may resideoutside the camera package 201 but are nevertheless placed physicallyand/or architecturally close to the camera package 201 so as toeliminate the cumbersome pathways discussed above with respect to FIG.1.

As observed in FIG. 2 some unique data flows may be entertained local tothe camera 201. Flow 206 corresponds to a flow in which the camera 201,because of the internal processing intelligence achieved with processor205, is able to analyze the image data and recognize a smaller region ofinterest. Therefore, only the smaller footprint sized data of the regionof interest is sent from the camera, e.g., to system memory for furtherprocessing by an applications processor so as to effectively reduce thetotal amount of data that needs to be forwarded through the system to beprocessed by the computer system's general purpose CPU core(s).

Flow 207 represents another flow in which the camera, again because ofthe processing intelligence realized with processor 205, is able toindependently control its various internal functions based on its ownanalysis of the image data. For example, based on the camera processor'sown analysis of the data, new auto-focus settings may be set and/or newexposure times may be set.

In operation, the optics 202 and image sensor 203 capture an imageconsistent with standard camera operation. However rather thanimmediately direct the image data out of the camera, the novel camera ofFIG. 2 will instead write the image data in its local memory 204. Apartfrom storing image data, memory 204 may also be used to store programcode that is executed by processor 205. Thus, the processor 205 executesout of memory 204 in performing its various applications.

FIG. 3 provides a high level view of some of the types of applicationsthat the local camera processor 304 can execute. As observed in FIG. 3some of the potential applications include scene analysis 301 functions(e.g., object recognition, auto-focusing), image quality analysis 302(e.g., to determine an appropriate exposure time setting, imageresolution or dynamic range), and motion analysis 303 (e.g., toestablish whether a high or low frame rate is appropriate based onmovement of features within an image or lack thereof).

In another embodiment, the image sensor within the camera includes banksof analog-to-digital converters having different resolutions and/ordynamic ranges. According to various image quality tasks, the processormay enable certain ones of the ADCs while disabling others. For example,if based on an analysis of the image low resolution is suitable (becausethe image has largely uniform imagery) the internal processor may send acommand to the image sensor to enable the low resolution/low dynamicrange ADCs and disable the higher resolution/high dynamic range ADCs.

FIGS. 4a and 4b provide additional details regarding an auto-focusembodiment of an intelligent camera. As observed in FIG. 4a the imagesensor, memory and processor of the camera can together be viewed as asmart image sensor 401. The smart image sensor 401 is able to performscene analysis with an image analysis engine 402 as, e.g., an initialpart of its auto-focus routine. As auto-focus routines can benumerically intensive, the smart image sensor also includes a statisticsengine 403 to collect, update and/or otherwise process the auto-functionnumerics. The smart image sensor can most advantageously be integratedinto a single circuit package, and is most preferably a system on achip.

A hybrid auto focus engine 404 may also perform the routines/tasks ofany one or more of: 1) laser based auto-focus; 2) phase detection basedauto-focus; or, 3) contrast based auto-focus. Any or all of the sceneanalysis engine 402, the stats engine 403, and the hybrid auto focusengine 404 may be implemented as program code that is executed by theprocessor of the smart image sensor out of the camera's memory.

In an embodiment, the smart image sensor 401 performs auto-focusroutines on smaller sized (“partial”) images that are processed at afaster frame rate (e.g., 120 frames per second (fps)). Because of thefaster frame rate, the smart image sensor is able to perform auto-focusmore rapidly than traditional implementations. Any full sized auto-focusinformation that needs to be forwarded up to the general purpose cores(if any) may be provided at a slower frame rate (e.g., 30 fps) to reducethe total rate of data passed externally through the system.

The smart image sensor 401 may also directly provide commands to thelens servos/actuators 405 to control lens positioning as part of theauto-focusing function. Additionally, e.g., in the case of laser basedauto-detection schemes, the smart sensor may directly provide commandsto a laser device that is also used to generate laser light fortime-of-flight depth imaging.

FIG. 4b shows an auto-focusing methodology that can be performed by thecamera system of FIG. 4a . As observed in FIG. 4b , the auto-focusroutine initially performs scene analysis 410 to, e.g., recognize anobject of interest that is to be focused upon. The object recognition ofthe scene analysis may be performed on a smaller footprint of the dataor “partial image” (e.g., operate over every other line or every thirdline within the image).

Additionally, some degree of machine learning or training 413 may beapplied beforehand and/or commensurate with the scene analysis 411.Here, apart from recognizing the mere existence of a profile of ageneric person within the profile, the scene analysis function 411 maybe smart enough to recognize a specific person within the image based onpreviously taken images.

Here, a machine learning process 413 may scrutinize previouspictures/images taken by the camera (e.g., and stored in the device'sphoto library) and recognize that a picture of a particular person isfrequently being taken. The machine learning function 413 may then builda facial recognition profile of the specific person and, when performingscene analysis 410, may seek or otherwise flag the person's face in theimage currently being taken (e.g., in the background amongst a crowd ofpeople) as the region of interest to be focused upon. Essentially, anyobject that the previous history of captured images demonstrates aninterest by the picture taker can be used to build a specific profilefor the object that the scene analysis function 410 uses to determine aregion of interest to be focused upon.

After the region of interest is determined by the scene analysis process410, more than one type of auto-focus technique may be applied torapidly bring the lens position “in the ballpark” of the correct focusposition 411 (note also that, image quality analysis and/or motionanalysis may also be performed (along with or separate fromauto-focusing) on one or more images or a region of interest within oneor more images in response to a machine learning based identification ofthe region of interest). In the particular type of embodiment of FIG. 4b, two different auto-focus techniques are concurrently applied: laserand phase detection (PD). After the concurrent application of the twodifferent auto-focus techniques have settled on an approximately correctlens location and the servo has been adjusted accordingly, a thirdauto-focus technique (contrast) is applied 412 to finally bring the lensto what is understood to be the finally correct position. Thus, process411 acts as a kind of course adjustment and process 412 acts as a kindof fine adjustment.

FIGS. 5a through 5c demonstrate some various perspectives of theaforementioned auto-focus technique. FIG. 5a shows a first embodiment inwhich the camera performs scene analysis 410 and the initial concurrentauto focusing 411 using laser auto-focus and phase detection auto-focus.The contrast auto focusing 412, however, is performed by theapplications processor on larger frames having a slower frame rate. Notethat the auto-focus can be triggered by the application's processordetecting some user interface activity, or the camera detecting a changein scene or detecting a specific object having a machine learned objectrecognition profile.

FIG. 5b shows a second embodiment in which the camera not only performsthe initial laser and phase detect auto focus 411 but also performs thelaser contrast based auto focus 412. Comparing FIGS. 5a and 5b , notehow much faster the camera is able to auto-focus because the longlatency feedback loop between the camera and applications processor hasbeen eliminated and the camera operates on smaller images with a fasterframe rate.

FIG. 5c shows a third embodiment that is similar to the embodiment 5 bin terms of approach but the camera acts more aggressively (faster)during the initial laser and phase detect auto focus sequence. Here,faster laser and phase detect auto focus may be achieved with fasterrates (and possible larger images) and faster clock speeds. Generally,FIGS. 5b and 5c represent a trade-off between performance (how fast theauto focus is achieved) and power consumption.

FIGS. 6a and 6b pertain to yet another use of a smart camera as descriedherein. As is understood in the art there are two types of imagestabilization: optical image stabilization (OIS) and electronic imagestabilization (EIS). Image stabilization is a technology that adjuststhe image content in response to and to offset any “shaking” of thecamera. For example, if the hand of a person who is taking a picturewith a handheld device is shaking, image stabilization will attempt toremove the effects of the hand movement from the observed image.

A perspective exists that EIS is generally superior to OIS in allrespects (video, power consumption, cost) except in the case of thetaking of a still image (i.e., a single picture is being taken). In thecase of a still image with OIS, because the camera is shaking at somerate, the camera optics are readily adjusted/moved in response to theshaking to essentially increase the exposure time and provide for abetter quality image. Here, the mechanical camera optics are designed toimmediately react to the data from a gyroscope so as to remove theapplications processor from the stabilization process. By contrast,traditional EIS has to timestamp the images and forward the time-stampedimages up to the applications processor. Additionally, the gyroscopeinformation is also time-stamped and compared to the timestamps of theimages so the position of the camera can be understood by theapplications processor for each image. Because of the feedback latencydiscussed at length above, a traditional computing system has difficultyreacting to the hand movement with sufficient speed to perform EIS inthe case of the taking of a still image.

FIGS. 6a and 6b pertain to an embodiment for performing EIS for stillimages having substantially reduced latency because the EISstabilization is performed locally by the camera. Here, FIG. 6a shows afirst data flow 601 in which information describing the shaking from agyroscope (or other device that generates information describingmovement of the camera) is streamed into the camera's memory 604.Additionally, FIG. 6a shows a second flow 602 in which the imagescaptured by the image sensor 603 are also stored in memory 604. Thus,each captured image has associated gyroscope meta data in memory 604.

FIG. 6b shows a process that may be executed, e.g., by the cameraprocessor 605 as software and/or dedicated custom logic circuitry withinthe camera (to speed up the processing as compared to softwareexecution). As observed in FIG. 6b , and as discussed above, stillimages captured by the image sensor and gyro data for those images arestored 611 in memory 604. The storage of the images in memory may be inresponse to recognition by a scene analysis function (such as machinelearning program code) of a region of interest within the images.

The gyro data is then used to align the images 612. Here, for instance,if the gyro data for image #2 indicates the camera moved 1 mm to theleft after image #1, the camera intelligence will (electronically) moveimage #2 effectively 1 mm to the right to offset the hand movementrecorded by the gyro scope. The imagery of images #1 and #2 aretherefore aligned. A similar sequence can be accomplished, e.g., formultiple images, e.g., between 5 and 10 images (inclusive), so that allof the multiple images are effectively aligned.

The multiple, now aligned images are then merged 613. The merger can beaccomplished, e.g., by adding the aligned pixel values of the image anddividing by the number of images to effectively produce an average valuefor each position in the image. The merger operation effectivelyincreases the exposure time for the image which is the main object ofimage stabilization (without image stabilization, with the cameramoving, it is difficult to take a higher quality image (longer exposuretime) without blurring). The processor may perform the merger 613 insoftware, or, in order to speed up the merge process, a stand alongcustom logic circuit (e.g., as a co-processor to the processor) may beinstantiated within the camera to rapidly perform the merger 613. Invarious embodiments, a custom merge circuit block may have anarchitecture that consists of many cores with each of them being fullyprogrammable. This architecture may consist of an input/output unit thathas AXI4, MIPI, and AHB/APB buses through them to achieve systemconnectivity. It can also consist of a storage/line buffer pool (e.g.SRAMs) and 2D SIMD compute (cores).

FIG. 7 pertains to another methodology that may be performed by anintelligent camera. The methodology of FIG. 7 pertains to the generationof high dynamic range images. Dynamic range corresponds to the abilityto detect both low intensity signals and high intensity signals.

According to the methodology of FIG. 7, different sets of images aretaken and stored in the camera memory where the different sets of imageshave a different number of images 701 (the storage of the images inmemory may be in response to recognition by a scene analysis function(such as machine learning program code) of a region of interest withinthe images). For example, a first set may only have three images,another set may have five images, another set may have 10 images, etc.Here, sets with more images effectively correspond to a single imagewith longer exposure time and therefore will be able to accuratelydetect weaker signals. By contrast, sets with fewer images effectivelycorrespond to a single image with smaller exposure time and thereforewill be able to accurately detect stronger signals.

The sets of images are then merged to produce a high dynamic range videostream 702. Here, for instance, if the video stream is being taken in adark room, the video stream can be composed of an averaging of the setor sets having more images. Likewise, if the video stream is being takenin a bright room, the video stream can be composed of an averaging ofthe set or sets having fewer images. Further still, if regions of a sameimage frame have both regions of high intensity and regions of lowintensity, the portions of the image frame having high intensity can beestablished from the sets having fewer images and the portions of theimage frame having low intensity can be established from the sets havingmore images so as to produce a single frame with high dynamic range.

The methodology of FIG. 7 may be performed entirely in software by thecamera processor. In another embodiment, a custom logic circuit isinstantiated in the camera to speed-up the averaging and/or merger ofthe different sets of images into the single video stream. In variousembodiments, the custom circuit block may have an architecture thatconsists of many cores with each of them being fully programmable. Thisarchitecture can consist of an input/output unit that has AXI4, MIPI,and AHB/APB buses through them to achieve system connectivity. It canalso consist of a storage/line buffer pool (e.g. SRAMs) and 2D SIMDcompute (cores).

It is pertinent to point out that the teachings above may be applied toany of: a stand alone camera or a camera integrated with or into acomputer system such as a server, a desktop, a laptop, a tablet, asmartphone or other handheld device or a smart appliance.

The camera may also include non volatile memory to store the programcode executed by the camera processor, or, such code may be loaded intothe camera memory during boot-up of the system.

Embodiments of the invention may include various processes as set forthabove. The processes may be embodied in machine-executable instructions.The instructions can be used to cause a general-purpose orspecial-purpose processor to perform certain processes. Alternatively,these processes may be performed by specific hardware components thatcontain hardwired logic for performing the processes, or by anycombination of programmed computer components and custom hardwarecomponents.

Elements of the present invention may also be provided as amachine-readable medium for storing the machine-executable instructions.The machine-readable medium may include, but is not limited to, floppydiskettes, optical disks, CD-ROMs, and magneto-optical disks, FLASHmemory, ROMs, RAMs, EPROMs, EEPROMs, magnetic or optical cards,propagation media or other type of media/machine-readable mediumsuitable for storing electronic instructions. For example, the presentinvention may be downloaded as a computer program which may betransferred from a remote computer (e.g., a server) to a requestingcomputer (e.g., a client) by way of data signals embodied in a carrierwave or other propagation medium via a communication link (e.g., a modemor network connection).

In the foregoing specification, the invention has been described withreference to specific exemplary embodiments thereof. It will, however,be evident that various modifications and changes may be made theretowithout departing from the broader spirit and scope of the invention asset forth in the appended claims. The specification and drawings are,accordingly, to be regarded in an illustrative rather than a restrictivesense.

The invention claimed is:
 1. An apparatus, comprising: a smart imagesensor comprising (i) a memory and a processor that are locallyintegrated with an image sensor within a same semiconductor chippackage, and (ii) circuitry for streaming movement data that isgenerated by a device that is not integrated within the samesemiconductor chip package to the memory of the smart image sensor thatis integrated within the same semiconductor chip package, the memorybeing coupled to the image sensor and the processor, the memory to storefirst program code to be executed by the processor, the memory to storesecond program code to be executed by the processor, the first programcode to cause the smart image sensor to perform an analysis on one ormore images captured by the image sensor, the first program codecomprising scene analysis program code to perform a scene analysis ofthe one or more images captured by the image sensor, the scene analysisto identify a region of interest within the one or more images withmachine learning from previously captured images, the second programcode to cause the smart image sensor to change an image sensing oroptical parameter based at least on a portion of the movement data thatis generated by the device that is not integrated within the samesemiconductor chip package that is streamed through the circuitry, tothe memory of the smart image sensor that is integrated within the samesemiconductor chip package, in response to the analysis of the one ormore images performed by the execution of the first program code.
 2. Theapparatus of claim 1 wherein the second program code comprises autofocus program code to change a focus parameter in response to the sceneanalysis performed by the first program code.
 3. The apparatus of claim2 wherein the change of the focus parameter is accomplished with laserauto focusing performed concurrently with phase detect auto focusing. 4.The apparatus of claim 3 wherein the change of the focus parameter isaccomplished with contrast auto focusing performed after either or bothof laser auto focusing and phase detect auto focusing.
 5. The apparatusof claim 1 wherein the first program code comprises image qualityprogram code to determine a quality of the one or more images capturedby the image sensor.
 6. The apparatus of claim 5 wherein the secondprogram code comprises any of exposure time setting program code, imageresolution program code and dynamic range program code tocorrespondingly change any of exposure time, image resolution anddynamic range of the image sensor in response to the quality of theimage determined by the first program code.
 7. The apparatus of claim 1wherein the first program code comprises motion analysis program code toperform motion analysis on multiple images captured by the image sensor.8. The apparatus of claim 7 wherein the second program code comprisesframe rate program code to change a frame rate of the multiple imagescaptured the image sensor based at least on a portion of the movementdata that is generated by the device that is not integrated within thesame semiconductor chip package that is streamed through the circuitry,to the memory of the smart image sensor that is integrated within thesame semiconductor chip package.
 9. The apparatus of claim 1 wherein theimage sensor comprises a bank of analog-to-digital converters to providefor optical processing paths having different dynamic ranges and/orresolutions.
 10. An apparatus, comprising: a smart image sensorcomprising (i) a memory and a processor that are locally integrated withan image sensor within a same semiconductor chip package, and (ii)circuitry for streaming movement data that is generated by a device thatis not integrated within the same semiconductor chip package to thememory of the smart image sensor that is integrated within the samesemiconductor chip package, the memory being coupled to the image sensorand the processor, the memory to store first program code to be executedby the processor, the memory to store second program code to be executedby the processor, the first program code to identify a region ofinterest of multiple images captured by the smart image sensor withmachine learning from previously captured images and to store themultiple images in the memory based at least on a portion of themovement data that is generated by the device that is not integratedwithin the same semiconductor chip package that is streamed through thecircuitry, to the memory of the smart image sensor that is integratedwithin the same semiconductor chip package, in response thereto, thesecond program code to merge the multiple images in the memory.
 11. Theapparatus of claim 10 wherein the movement data is stored in the memorywith the multiple images and the second program code uses the movementdata to align and merge the multiple images to perform electronic imagestabilization.
 12. The apparatus of claim 10 wherein the first programcode stores sets of the multiple images in the memory wherein the setshave different respective numbers of the multiple images and the secondprogram code merges respective images within different one of the setsto create a source for a high dynamic range video stream.
 13. Acomputing system, comprising: one or more applications processors; amemory controller coupled to the one or more applications processors; asystem memory coupled to the memory controller; an I/O control hubcoupled to the memory controller; a smart image sensor coupled to theI/O control hub, the smart image sensor (i) a memory and a processorthat are locally integrated with an image sensor within a samesemiconductor chip package, and (ii) circuitry for streaming movementdata that is generated by a device that is not integrated within thesame semiconductor chip package to the memory of the smart image sensorthat is integrated within the same semiconductor chip package, thememory being coupled to the image sensor and the processor, the memoryto store either or both of: a) first program code to be executed by theprocessor and second program code to be executed by the processor, thefirst program code to cause the smart image sensor to perform ananalysis on one or more images captured by the image sensor, theanalysis to identify a region of interest within the one or more imageswith machine learning from previously captured images, the secondprogram code to cause the smart image sensor to change an image sensingor optical parameter based at least on a portion of the movement datathat is generated by the device that is not integrated within the samesemiconductor chip package that is streamed through the circuitry, tothe memory of the smart image sensor that is integrated within the samesemiconductor chip package, in response to the analysis of the one ormore images performed by the execution of the first program code; or b)third program code to be executed by the processor and fourth programcode to be executed by the processor, the third program code to storemultiple images captured by the image sensor in the memory based atleast on a portion of the movement data that is generated by the devicethat is not integrated within the same semiconductor chip package thatis streamed through the circuitry, to the memory of the smart imagesensor that is integrated within the same semiconductor chip package,the fourth program code to merge the multiple images in the memory. 14.The computing system of claim 13 wherein the second program codecomprises auto focus program code to change a focus parameter inresponse to the scene analysis performed by the first program code. 15.The computing system of claim 13 wherein the first program codecomprises image quality program code to determine a quality of the oneor more images captured by the image sensor.
 16. The computing system ofclaim 15 wherein the second program code comprises any of exposure timesetting program code, image resolution program code and dynamic rangeprogram code to correspondingly change any of exposure time, imageresolution and dynamic range of the image sensor in response to thequality of the image determined by the first program code.
 17. Thecomputing system of claim 13 wherein the first program code comprisesmotion analysis program code to perform motion analysis on multipleimages captured by the image sensor.
 18. The computing system of claim17 wherein the second program code comprises frame rate program code tochange a frame rate of the multiple images captured the image sensor.19. The apparatus of claim 13 wherein the movement data is stored in thememory with the multiple images and the fourth program code uses themovement data to align and merge the multiple images to performelectronic image stabilization.
 20. The apparatus of claim 13 whereinthe third program code stores sets of the multiple images in the memorywherein the sets have different respective numbers of the multipleimages and the fourth program code merges respective images withindifferent one of the sets to create a source for a high dynamic rangevideo stream.
 21. A non-transitory machine readable medium within asmart image sensor, the smart image sensor comprised of (i) a memory,processor and image sensor that are locally integrated within a samesemiconductor chip package, and (ii) circuitry for streaming movementdata that is generated by a device that is not integrated within thesame semiconductor chip package to the memory of the smart image sensorthat is integrated within the same semiconductor chip package, thememory being coupled to the image sensor and the processor, the machinereadable medium storing either or both of: a) first program code to beexecuted by the processor and second program code to be executed by theprocessor, the first program code to cause the smart image sensor toperform an analysis on one or more images captured by the image sensor,the analysis to identify a region of interest within the one or moreimages with machine learning from previously captured images, the secondprogram code to cause the smart image sensor to change an image sensingor optical parameter based at least on a portion of the movement datathat is generated by the device that is not integrated within the samesemiconductor chip package that is streamed through the circuitry, tothe memory of the smart image sensor that is integrated within the samesemiconductor chip package, in response to the analysis of the one ormore images performed by the execution of the first program code; or b)third program code to be executed by the processor and fourth programcode to be executed by the processor, the third program code to storemultiple images captured by the image sensor in the memory based atleast on a portion of the movement data that is generated by the devicethat is not integrated within the same semiconductor chip package thatis streamed through the circuitry, to the memory of the smart imagesensor that is integrated within the same semiconductor chip package,the fourth program code to merge the multiple images in the memory.